/*  1:   */ package org.intellij.images.thumbnail.impl;
/*  2:   */ 
/*  3:   */

import com.intellij.openapi.Disposable;
import com.intellij.openapi.project.Project;
import org.intellij.images.thumbnail.ThumbnailManager;
import org.intellij.images.thumbnail.ThumbnailView;
import org.jetbrains.annotations.NotNull;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */ 
/*  9:   */ final class ThumbnailManagerImpl
/* 10:   */   extends ThumbnailManager
/* 11:   */   implements Disposable
/* 12:   */ {
/* 13:   */   private final Project a;
/* 14:   */   private ThumbnailView b;
/* 15:   */   
/* 16:   */   public ThumbnailManagerImpl(Project paramProject)
/* 17:   */   {
/* 18:34 */     this.a = paramProject;
/* 19:   */   }
/* 20:   */   
/* 21:   */   @NotNull
/* 22:   */   public final ThumbnailView getThumbnailView()
/* 23:   */   {
/* 24:39 */     if (this.b == null) {
/* 25:40 */       this.b = new ThumbnailViewImpl(this.a);
/* 26:   */     }
/* 27:42 */     ThumbnailView tmp26_23 = this.b;
/* 28:42 */     if (tmp26_23 == null) {
/* 29:42 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/intellij/images/thumbnail/impl/ThumbnailManagerImpl", "getThumbnailView" }));
/* 30:   */     }
/* 31:42 */     return tmp26_23;
/* 32:   */   }
/* 33:   */   
/* 34:   */   public void dispose()
/* 35:   */   {
/* 36:46 */     if (this.b != null)
/* 37:   */     {
/* 38:47 */       this.b.dispose();
/* 39:48 */       this.b = null;
/* 40:   */     }
/* 41:   */   }
/* 42:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.intellij.images.thumbnail.impl.ThumbnailManagerImpl

 * JD-Core Version:    0.7.0.1

 */